package com.jic.member.consumer;

import com.jic.common.base.vo.PageResult;
import com.jic.common.base.vo.RestResult;
import com.jic.manager.api.rest.UserSysDeptApi;
import com.jic.manager.request.MestorePageRequest;
import com.jic.manager.response.MestoreResponse;
import com.jic.manager.response.SysDeptResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class UserSysDeptConsumer {

    @Autowired
    private UserSysDeptApi userSysDeptProviderService;



    public List<SysDeptResponse> getUserProviderAuthorDept(Long userId, Long deptId) {
       return userSysDeptProviderService.getUserProviderAuthorDept(userId, deptId).getData();
    }

    public List<SysDeptResponse> queryListByIds(List<Long> deptIdList) {
        return userSysDeptProviderService.queryListByIds(deptIdList);
    }

    //卡奥斯查询店铺
    public RestResult<PageResult<MestoreResponse>> getStorePage(MestorePageRequest mestorePageRequest) {
       return userSysDeptProviderService.getStorePage(mestorePageRequest);
    }
}
